/** 
 * @author Huang RuiGuang
 * @date 2008/12/1
 *
 * Herm library
 * Copyright (c) 2008 by Huang RuiGuang(daemon.huang@gmail.com)
 *
 * Permission to use, copy, modify, distribute and sell this software.
 */

#ifndef HERM_FRAMEWORK_NBC_TCP_SESSION_H
#define HERM_FRAMEWORK_NBC_TCP_SESSION_H

#include "herm/base/network/tcp_session.h"

class NonblockConnectTCPSession : public TCPSession
{
public:
	void Reset(herm::Handle handle, herm::INBCNotifier* notifier);
private:
	virtual int Read(char* buf, int& len);
	virtual int Push(const char* buf, int len);
	virtual int Send(int);
private:
	bool m_isConnected;
	herm::INBCNotifier* m_notifier;
};

#endif
